home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_hints.cog < prev    next >
Text File  |  1999-11-15  |  6KB  |  258 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_hints.cog
  4. #
  5. #
  6. # [GGJ]
  7. #
  8. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  9. #
  10. # ========================================================================================
  11.  
  12. symbols
  13. message        taken
  14. message        entered
  15. message        activated
  16. message        damaged
  17. message        removed
  18. message        user0
  19. message        user1
  20. message        user2
  21. message        user3
  22. message        user4
  23.  
  24. thing        key
  25. thing        pike
  26. thing        idol
  27. thing        Torch
  28. #thing        eagle            mask=0x08
  29. surface        rubbleFace        mask=0x08
  30. thing        lastClimb0        mask=0x08
  31. thing        lastClimb1        mask=0x08
  32. thing        floor7
  33. thing        swingBranch        mask=0x08
  34.  
  35. thing        hint1
  36. thing        hint2
  37. thing        hint3
  38. thing        hint4
  39. thing        hint5
  40. thing        hint6
  41. thing        hint7
  42. thing        hint8
  43. thing        hint9
  44. thing        hint10
  45. thing        hint11
  46. thing        hint12
  47. thing        hint13
  48. thing        hint14
  49. thing        hint15
  50. thing        hint16
  51. thing        hint17
  52. thing        hint18
  53. thing        hint19
  54. thing        hint20
  55. thing        hint21
  56. thing        hint22
  57. thing        hint23
  58. thing        hint24
  59. thing        hint25
  60. thing        hint26
  61. thing        hint27
  62. thing        hint28
  63.  
  64. surface        shimmyHang
  65.  
  66. sector        waterTunnel
  67. sector        riverStart
  68. sector        darkWaterTunnel
  69. sector        waterMazeExit
  70. sector        lastTrapDoor
  71. sector        lightTrap
  72. sector        acrossWater
  73. sector        columnCutscene
  74. sector        columnWindow
  75. sector        columnCubby
  76. sector        stairPitCubby
  77. sector        stairPitExit
  78. sector        boulderTrigger
  79. sector        beyondPike
  80.  
  81. int            gotRaft=0            local
  82. int            gotKey=0            local
  83. int            triggerdBoulder=0    local
  84.  
  85. end
  86. # ========================================================================================
  87. code
  88. taken:
  89. #(9)  Indy picked up the key.
  90. if (GetSenderRef() == key)
  91. {
  92.     SetHintSolved(hint9);
  93.     gotKey=1;
  94.     return;
  95. }
  96. #(24)  Indy picked up the new idol.
  97. if (GetSenderRef() == idol)
  98. {
  99.     SetHintSolved(hint24);
  100. }
  101. return;
  102.  
  103. # ========================================================================================
  104. removed:
  105. #(14)  Indy picked up the pike.
  106. if (GetSenderRef() == pike)
  107. {
  108.     SetHintSolved(hint14);
  109. }
  110. return;
  111.  
  112. # ========================================================================================
  113. entered:
  114. #(2)  Indy rafted into the river.
  115. if ((GetSenderRef() == riverStart) && (gotRaft == 1))
  116. {
  117.     SetHintSolved(hint2);
  118.     Print("RAFTING");
  119. }
  120. #(3)  Indy found the tunnel under the lagoon
  121. if (GetSenderRef() == waterTunnel)
  122. {
  123.     SetHintSolved(hint3);
  124. }
  125. #(4)  Indy found the exit to the underwater maze.
  126. if (GetSenderRef() == waterMazeExit)
  127. {
  128.     SetHintSolved(hint4);
  129. }
  130. #(6)  Indy found the exit below the torch.
  131. if (GetSenderRef() == darkWaterTunnel)
  132. {
  133.     SetHintSolved(hint4);                        #just in case Indy never lit the bowl
  134.     SetHintSolved(hint5);
  135.     SetHintSolved(hint6);
  136. }
  137. #(8)  Indy found the light trap.
  138. if (GetSenderRef() == lightTrap)
  139. {
  140.     SetHintSolved(hint8);
  141. }
  142. #(10)  Indy headed across the water-filled pit.
  143. if ((GetSenderRef() == acrossWater) && (gotKey == 1))
  144. {
  145.     SetHintSolved(hint10);
  146. }
  147. #(13)  Indy entered the sector leading into the column.
  148. if (GetSenderRef() == columnCutscene)
  149. {
  150.     SetHintSolved(hint13);
  151. }
  152. #(16)  Indy whipclimbed to the ledge behind the whip pike.
  153. if (GetSenderRef() == beyondPike)
  154. {
  155.     Print("climbed up whipspike");
  156.     SetHintSolved(hint16);
  157. }
  158. #(17)  Indy fell through the last trap door.
  159. if (GetSenderRef() == lastTrapDoor)
  160. {
  161.     SetHintSolved(hint17);
  162. }
  163. #(18)  Indy jumped and grabbed the shimmy hang ledge.
  164. if (GetSenderRef() == shimmyHang)
  165. {
  166.     SetHintSolved(hint18);
  167. }
  168. #(19)    Indy jumped to the top opening of the column.
  169. if (GetSenderRef() == columnWindow)
  170. {
  171.     SetHintSolved(hint19);
  172. }
  173. #(20)  Indy dropped into the column cubby.
  174. if (GetSenderRef() == columnCubby)
  175. {
  176.     SetHintSolved(hint13);                    #just in case Indy never triggered the column cutscene.
  177.     SetHintSolved(hint20);
  178. }
  179. #(22)  Indy made it to the far side of the stairpit.
  180. if (GetSenderRef() == stairPitCubby)
  181. {
  182.     SetHintSolved(hint22);
  183. }
  184. #(23)  Indy made it to the top of the stairpit.
  185. if (GetSenderRef() == stairPitExit)
  186. {
  187.     SetHintSolved(hint23);
  188. }
  189. #(25)  Indy triggered the rolling boulder.
  190. if (GetSenderRef() == boulderTrigger)
  191. {
  192.     SetHintSolved(hint25);
  193.     #triggeredBoulder=1;
  194. }
  195. #(26)  Indy jumped back on the last chunk of loose floor.
  196. if ((GetSenderRef() == floor7) && (triggerdBoulder == 1))
  197. {
  198.     SetHintSolved(hint26);
  199. }
  200. return;
  201. # ========================================================================================
  202. activated:
  203. #(5) Indy lit the torch.
  204. if (GetSenderRef() == torch)
  205. {
  206.     SetHintSolved(hint5);
  207. }
  208. return;
  209. # ========================================================================================
  210. damaged:
  211. #(21)  Indy whipped the eagle statue.
  212. if (GetSenderRef() == rubbleFace)        #was eagle
  213. {
  214.     SetHintSolved(hint21);
  215. }
  216. #(27)  Indy whip swung across the branch.
  217. if (GetSenderRef() == swingBranch)
  218. {
  219.     SetHintSolved(hint27);
  220. }
  221. #(28)  Indy whipclimbed his way to safety at the end of the level.
  222. if ((GetSenderRef() == lastClimb0) || (GetSenderRef() == lastClimb0))
  223. {
  224.     SetHintSolved(hint28);
  225. }
  226.  
  227. return;
  228. # ========================================================================================
  229. #(1)  Indy picked up the raft.  From PRU_arrivalCS.cog.  
  230. user1:
  231. SetHintSolved(hint1);
  232. gotRaft=1;
  233. return;
  234.  
  235. #(7)  Indy pushed the rock into the water.  From PRU_rockflood.cog
  236. user2:
  237. SetHintSolved(hint7);
  238. return;
  239.  
  240. #(11)  Indy saw the empty light shaft.  From PRU_voicelineCan'tWhip.cog
  241. user0:
  242. SetHintSolved(hint11);
  243. return;
  244.  
  245. #(12)  Indy unlocked the door in the floor.  From PRU_treasuredoor.cog
  246. user4:
  247. SetHintSolved(hint12);
  248. return;
  249.  
  250. #(15)  Indy placed the pike.  From PRU_whipspike.cog.
  251. user3:
  252. SetHintSolved(hint11);                      #just in case the player never looked at the light shaft...
  253. SetHintSolved(hint15);
  254. Print("placed pike");
  255. return;
  256.  
  257. end
  258.